package com.yami.shop.mp.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author yami
 */
@Data
@TableName( "tz_weixin_material")
public class WeixinMaterial  implements Serializable {

    @Schema(description = "素材id")
    @TableId
    private String mediaId;

    @Schema(description = "素材类型")
    private String mediaType;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "素材名称")
    private String mediaName;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description = "素材内容")
    private String content;
}
